home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / mmailp.idb / tmp / check_lm.z / check_lm
Encoding:
Text File  |  1997-01-22  |  2.4 KB  |  71 lines

  1. #!/bin/sh
  2.  
  3. # This script checks to see whether language modules are installed without
  4. # the corresponding mmailp language subsystem installed.  If so, an
  5. # xconfirm dialog will be displayed.
  6.  
  7. PATH=/usr/sbin:/usr/bsd:/bin:/etc:/sbin:/usr/bin:/usr/etc:/usr/bin/X11
  8. FLAG=0
  9. MSGFILE=/var/tmp/message.$$
  10.  
  11. if [ -n "`showprods -s chinese_sys.sw.user_env_china WorldView_chinese.sw.user_env_china`" ]; then
  12.     if [ -z "`showprods -s mmailp.sw.chinese_china`" ]; then
  13.         FLAG=1
  14.     fi
  15. fi
  16.  
  17. if [ -n "`showprods -s chinese_sys.sw.user_env_taiwan WorldView_chinese.sw.user_env_taiwan`" ]; then
  18.     if [ -z "`showprods -s mmailp.sw.chinese_taiwan`" ]; then
  19.         FLAG=1
  20.     fi
  21. fi
  22.  
  23. if [ -n "`showprods -s japanese_sys.sw WorldView_japanese.sw`" ]; then
  24.     if [ -z "`showprods -s mmailp.sw.japanese`" ]; then
  25.         FLAG=1
  26.     fi
  27. fi
  28.  
  29. if [ -n "`showprods -s european.env.french WorldView_euro.env.french`" ]; then
  30.     if [ -z "`showprods -s mmailp.sw.french`" ]; then
  31.         FLAG=1
  32.     fi
  33. fi
  34.  
  35. if [ -n "`showprods -s european.env.german WorldView_euro.env.german`" ]; then
  36.     if [ -z "`showprods -s mmailp.sw.german`" ]; then
  37.         FLAG=1
  38.     fi
  39. fi
  40.  
  41. if [ -n "`showprods -s korean_sys.sw WorldView_korean.sw`" ]; then
  42.     if [ -z "`showprods -s mmailp.sw.korean`" ]; then
  43.         FLAG=1
  44.     fi
  45. fi
  46.  
  47. if [ $FLAG -eq 1 ]; then
  48.     cat <<\EOF > ${MSGFILE}
  49. WARNING!  MediaMail Pro installation is NOT complete.
  50.  
  51. This machine has a language module installed (Chinese, French,
  52. German, Japanese, or Korean) and therefore requires the
  53. corresponding MediaMail Pro language files be installed.
  54.  
  55. 1. Click the "Custom Installation" button in the Software Manager
  56.    (if you have quit the Software Manager, double-click on the CDROM
  57.    icon on your desktop to reopen it, or choose Software Manager
  58.    from the System Toolchest menu, and type the path to the
  59.    installation directory in the Available Software field),
  60. 2. Click on the arrow next to "Product: MediaMail Pro (Requires Software
  61.    License), 3.2S.3" to see the sub-systems,
  62. 3. Click on the install box next to the appropriate MediaMail
  63.    Language Files to select them for installation, and
  64. 4. Click the "Start" button.
  65.  
  66. Localized versions of MediaMail Pro will NOT run if these files are not
  67. installed.
  68. EOF
  69.     xconfirm -file ${MSGFILE} -header MediaMail -icon warning -b OK -geometry +20+350 -font -*-helvetica-bold-r-*-*-15-120-*-*-*-*-iso8859-1 2>&1 >/dev/null && rm -fr ${MSGFILE} &
  70. fi
  71.